package com.yuyou.fn.educational.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 题目
 *
 */
@TableName(value = "exam_question")
public class ExamQuestion implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<ExamQuestion> createExample(){
		return new Example<ExamQuestion>(ExamQuestion.class);
	}

	/**  */
	@TableId(value = "exam_question_id")
	private Long examQuestionId;

	/**  */
	@TableField(value = "exam_paper_id")
	private Long examPaperId;

	/** 编号 */
	@TableField(value = "question_no")
	private Integer questionNo;

	/** 题干 */
	private String body;

	/** 答案配置,选择题 {"items":["A" ,"B" ,"C" ,"D"]} ,填空题 {"inputCount": 2 } */
	@TableField(value = "answer_config")
	private String answerConfig;

	/** 答案 ["A"] ["xx","yy"] */
	private String answer;

	/** 分值 */
	private Integer score;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	/** 题型 0:选择题 1:填空题 */
	@TableField("question_type")
	private Integer questionType ;

	public Long getExamQuestionId() {
		return this.examQuestionId;
	}

	public void setExamQuestionId(Long examQuestionId) {
		this.examQuestionId = examQuestionId;
	}

	public Long getExamPaperId() {
		return this.examPaperId;
	}

	public void setExamPaperId(Long examPaperId) {
		this.examPaperId = examPaperId;
	}

	public Integer getQuestionNo() {
		return this.questionNo;
	}

	public void setQuestionNo(Integer questionNo) {
		this.questionNo = questionNo;
	}

	public String getBody() {
		return this.body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getAnswerConfig() {
		return this.answerConfig;
	}

	public void setAnswerConfig(String answerConfig) {
		this.answerConfig = answerConfig;
	}

	public String getAnswer() {
		return this.answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public Integer getScore() {
		return this.score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getQuestionType() {
		return questionType;
	}

	public void setQuestionType(Integer questionType) {
		this.questionType = questionType;
	}
}
